package com.xy.demo.extend;

public class PreExtend {

   public String name = "preName";
   public int age;
   public  void show(){
        System.out.println(name);
        System.out.println(age);
    }

    public  void showTime(){
        System.out.println("PreExtend showTime methods!");
    }

    public  void showTimeT(){
        System.out.println("PreExtendT showTime methods!");
    }

    public void showTimeT2(int age){
        System.out.println("PreExtend have params methods!");
        this.age=age;
    }



}
